package com.lsj.juc.myself;

/**
 * @author lsj
 * @create 2021-06-17 10:56
 */
class ClassStatic{
    public static void classSOut(){
        System.out.println("类的静态方法");
    }

    public void classNSOut(){
        System.out.println("类的非静态方法");
    }
}

interface InterfaceStatic{
    public static final int MIN_SPEED = 1;
    int MAX_SPEED = 7900;

    public static void interfaceSOut(){
        System.out.println("接口的静态方法");
    }

    default void interfaceDOut(){
        System.out.println("接口的默认方法");
    }
}

//interface InterfaceStatic2{
//    public static void interfaceSOut(){
//        System.out.println("接口2的静态方法");
//    }
//
//    default void interfaceDOut(){
//        System.out.println("接口2的默认方法");
//    }
//}
class ImplementsInterfaceStatic implements InterfaceStatic{

    @Override
    public void interfaceDOut() {
        InterfaceStatic.super.interfaceDOut();
    }
}

public class StaticMethodTest {
    public static void main(String[] args) {
        ClassStatic classStatic = new ClassStatic();
        InterfaceStatic interfaceStatic = new InterfaceStatic() {};
        ImplementsInterfaceStatic implementsInterfaceStatic = new ImplementsInterfaceStatic();

//        classStatic.classNSOut();
//        classStatic.classSOut();
//        ClassStatic.classSOut();

//        interfaceStatic.InterfaceSOut();

//        ImplementsInterfaceStatic.interfaceSOut();
////        interfaceStatic.interfaceDOut();
//        implementsInterfaceStatic.interfaceDOut();
//
//        ImplementsInterfaceStatic.interfaceSOut();
//        InterfaceStatic.
    }
}
